<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="/deng/include/include-css.js"></script>
<title>OMPRedis配置新增页面</title>
</head>
<body>
	<div class="m-portlet">
		<div class="m-portlet__head">
			<div class="m-portlet__head-caption">
				<div class="m-portlet__head-title">
					<span class="m-portlet__head-icon m--hide">
						<i class="la la-gear"></i>
					</span>
					<h3 class="m-portlet__head-text">
						创建OMPRedis配置信息
					</h3>
				</div>
			</div>
		</div>
		<form class="m-form m-form--fit m-form--label-align-left m-form--group-seperator-dashed" id="defaultForm" method="post">
			<div class="m-portlet__body">
				<div class="form-group m-form__group row">
					<label class="col-lg-1 col-form-label">名&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称</label>
					<div class="col-lg-3">
						<input class="form-control" type="text" data-bv-notempty data-bv-notempty-message="请输入" maxlength="100" id="name" name="name" placeholder="请输入">
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-lg-1 col-form-label">ip</label>
					<div class="col-lg-3">
						<input class="form-control" type="text" data-bv-notempty data-bv-notempty-message="请输入" maxlength="20" id="host" name="host" placeholder="请输入">
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-lg-1 col-form-label">端&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;口</label>
					<div class="col-lg-1">
						<input class="form-control" value="6379" data-bv-notempty data-bv-notempty-message="请输入" data-bv-numeric data-bv-numeric-message="此项只能为数字" type="text" maxlength="6" name="port" id="port" placeholder="请输入">
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-lg-1 col-form-label">密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码</label>
					<div class="col-lg-3">
						<input class="form-control" id="password" name="password" placeholder="请输入">
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-lg-1 col-form-label">最大连接数</label>
					<div class="col-lg-1">
						<input class="form-control" data-bv-numeric data-bv-numeric-message="此项只能为数字" id="max_total" name="max_total" value="8" placeholder="请输入">
					</div>
					<label class="col-lg-8 col-form-label" style="color: #22b9ff">可用连接实例的最大数目，默认值为8；</label>
				</div>

				<div class="form-group m-form__group row">
					<label class="col-lg-1 col-form-label">最大空闲数</label>
					<div class="col-lg-1">
						<input class="form-control" data-bv-numeric data-bv-numeric-message="此项只能为数字" id="max_idle" name="max_idle" value="8" placeholder="请输入">
					</div>
					<label class="col-lg-8 col-form-label" style="color: #22b9ff">控制一个pool最多有多少个状态为idle(空闲的)的jedis实例，默认值也是8。</label>
				</div>

				<div class="form-group m-form__group row">
					<label class="col-lg-1 col-form-label">最大等待时间</label>
					<div class="col-lg-1">
						<input class="form-control" data-bv-numeric data-bv-numeric-message="此项只能为数字" id="max_wait_millis" name="max_wait_millis" value="10000" placeholder="请输入">
					</div>
					<label class="col-lg-8 col-form-label" style="color: #22b9ff">等待可用连接的最大时间，单位毫秒，默认值为-1，表示永不超时。如果超过等待时间，则直接抛出。</label>
				</div>

				<div class="form-group m-form__group row">
					<label class="col-lg-1 col-form-label">超时时间</label>
					<div class="col-lg-1">
						<input class="form-control" data-bv-numeric data-bv-numeric-message="此项只能为数字" id="timeout" name="timeout" value="10000" placeholder="请输入">
					</div>
				</div>

				<div class="form-group m-form__group row">
					<label class="col-lg-1 col-form-label">校验</label>
					<div class="col-lg-1">
						<select class="form-control" id="test_on_borrow" name="test_on_borrow" title="在从池中取出连接前是否进行检验,如果检验失败,则从池中去除连接并尝试取出另一个。true为检查，false为不检查。设置为true时，当连接池中的连接全部被占后，导致后续操作，
						获取不到数据，这些程序会等待，直到超时或者获取到有效连接为主">
							<option value="true">是</option>
							<option value="false">否</option>
						</select>
					</div>
					<label class="col-lg-10 col-form-label" style="color: #22b9ff">
						在从池中取出连接前是否进行检验,如果检验失败,则从池中去除连接并尝试取出另一个。true为检查，false为不检查。</label>
				</div>

				<div class="form-group m-form__group row">
					<label class="col-lg-1 col-form-label">排序编号</label>
					<div class="col-lg-1">
						<input class="form-control" placeholder="请输入" data-bv-numeric data-bv-numeric-message="此项只能为数字" id="sort" name="sort">
					</div>
				</div>
			</div>
			<div class="m-portlet__foot m-portlet__no-border m-portlet__foot--fit">
				<div class="m-form__actions m-form__actions--solid">
					<div class="form-group m-form__group row">
						<div class="col m--align-left">
							<a class="btn btn-light-primary font-weight-bold mr-2 m-btn m-btn--custom m-btn--icon" href="javascript:addOPMRedisConfig()">保存</a>
							<a class="btn btn-secondary m-btn m-btn--custom m-btn--icon" href="javascript:goback()">返回</a>
						</div>
						<div class="col m--align-right">
							<a class="btn btn-secondary m-btn m-btn--custom m-btn--icon" href="javascript:resetAll('defaultForm')"><span><i class="fa fa-repeat"></i><span>重置</span></span></a>
						</div>
					</div>
				</div>
			</div>
		</form>
	</div>
</body>
<script type="text/javascript" src="/deng/include/include.js"></script>
<script type="text/javascript" src="/deng/view/omp/rds/omp-redis-config/omp-redis-config-add.js"></script>
</html>
